package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.base.IBasePresenter;
import com.kelvin.paopao.module.market.wallet.wallet.WalletActivity;
import com.kelvin.paopao.module.market.wallet.wallet.WalletPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/10.
 */

@Module
public class WalletModule {
    private WalletActivity mView;

    public WalletModule(WalletActivity view) {
        this.mView = view;
    }


    @PerActivity
    @Provides
    public IBasePresenter providerPresenter() {
        return new WalletPresenter(mView);
    }
}
